package com.qa.IDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qa.pojo.Calendars;
import com.qa.pojo.Users;
import com.qa.pojo.calendar;

public interface calendarMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(calendar record);

	int insertSelective(calendar record);

	calendar selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(calendar record);

	int updateByPrimaryKey(calendar record);

	boolean addMyCalendar(@Param("usersid") int usersid,
			@Param("title") String title, @Param("allDay") int allDay,
			@Param("date") String date);

	int selectThisCalendar(@Param("usersid") int usersid,
			@Param("title") String title, @Param("allDay") int allDay,
			@Param("date") String date);

	List<calendar> selectMyCalendar(@Param("usersid") int usersid);

	int deleteMyCalendar(@Param("usersid") int usersid, @Param("id") int id);

	int updateMyCalendarForDrop(@Param("usersid") int usersid,
			@Param("id") int id, @Param("dayDelta") int dayDelta);

	int updateMyCalendarForResize(@Param("usersid") int usersid,
			@Param("id") int id, @Param("dayDelta") int dayDelta);

	List<Users> selectSubordinateById(@Param("usersid") int usersid);

	List<String> selectCurrentProject();

	boolean addMyCalendarForOne(@Param("usersid") int usersid,
			@Param("date") String date,
			@Param("projectname") String projectname,
			@Param("work_time") Double work_time,
			@Param("work_content") String work_content);

	int selectThisCalendarForOne(@Param("usersid") int usersid,
			@Param("date") String date,
			@Param("projectname") String projectname,
			@Param("work_time") Double work_time,
			@Param("work_content") String work_content);

	List<calendar> selectCalendarForOne(@Param("id") int id);

	List<Calendars> exportpersonevent(@Param("usersid") int usersid,
			@Param("beginmonth") String beginmonth,
			@Param("endmonth") String endmonth);
}